package cn.baiy;

import javax.swing.*;

//鱼雷潜艇类
public class TorpedoSubmarine extends SeaObject implements EnemyScore {  //继承

    public TorpedoSubmarine() {
        super(64, 20);
    }

    @Override
    public void move() {
        x += speed;//向右移动
    }

    @Override
    public ImageIcon getImage() {
        return Images.torpesubm;
    }

    public int getScore() {//得分
        return 40;//40分
    }

}
